package com.byb.server.service;

import com.byb.server.service.dto.OtherSafeguard2ndDTO;
import org.springframework.data.domain.Page;
import org.springframework.data.domain.Pageable;

import java.util.List;

/**
 * Service Interface for managing OtherSafeguard2nd.
 */
public interface OtherSafeguard2ndService {

    /**
     * Save a otherSafeguard2nd.
     *
     * @param otherSafeguard2ndDTO the entity to save
     * @return the persisted entity
     */
    OtherSafeguard2ndDTO save(OtherSafeguard2ndDTO otherSafeguard2ndDTO);

    /**
     *  Get all the otherSafeguard2nds.
     *
     *  @param pageable the pagination information
     *  @return the list of entities
     */
    Page<OtherSafeguard2ndDTO> findAll(Pageable pageable);

    /**
     *  Get the "id" otherSafeguard2nd.
     *
     *  @param id the id of the entity
     *  @return the entity
     */
    OtherSafeguard2ndDTO findOne(Long id);

    /**
     *  Delete the "id" otherSafeguard2nd.
     *
     *  @param id the id of the entity
     */
    void delete(Long id);

    /**
     * Search for the otherSafeguard2nd corresponding to the query.
     *
     *  @param query the query of the search
     *
     *  @param pageable the pagination information
     *  @return the list of entities
     */
    Page<OtherSafeguard2ndDTO> search(String query, Pageable pageable);

    Page<OtherSafeguard2ndDTO> getAllProductId(Long id,Pageable pageable);
}
